function getPlayerTextStorageValue(cid, valueid)
	local tmp = db.getResult("SELECT `value` FROM `player_txt_storage` WHERE `player_id` = "..getPlayerGUID(cid).." AND `key`="..valueid..";")
	if tmp:getID() ~= -1 then
		result = tmp:getDataString("value")
		return result, true
	end
	
	return '', false
end

function setPlayerTextStorageValue(cid, valueid, newvalue)
	db.executeQuery("DELETE FROM `player_txt_storage` WHERE `key`="..valueid..";")
	db.executeQuery("INSERT INTO `player_txt_storage` (`player_id`, `key`, `value`) VALUES (".. getPlayerGUID(cid) ..", "..valueid..", "..db.escapeString(newvalue)..");")
	return true
end

function doErasePlayerTextStorageValue(cid, valueid)
	return db.executeQuery("DELETE FROM `player_txt_storage` WHERE `player_id`=".. getPlayerGUID(cid) .." AND `key`="..valueid..";")
end

function getPlayerTextStorageValueByName(name, valueid)

end

function setPlayerStorageValueByName(name, valueid, newvalue)

end

function doErasePlayerTextStorageValueByName(name, valueid)

end


--[[
db.getResult("--zapytanie do bazy danych") -- tak, abym pamietal 
db.executeQuery(" ") -- bool
db.escapeString(" ")
]]